//
//  DataOfSecondSearchResult.m
//  __PRODUCTNAME__
//
//  Created by li cheng on 16/09/14
//  Copyright (c) Gollum. All rights reserved.
//

#import "DataOfSecondSearchResult.h"
#import "ListOfDataSecondSearchResult.h"

@implementation DataOfSecondSearchResult

+ (NSDictionary *)objectClassInArray{
    return @{@"list" : [ListOfDataSecondSearchResult class]};
}

- (void)setValue:(id)value forKey:(NSString *)key{
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"list"]) {
        NSMutableArray<ListOfDataSecondSearchResult *> *mArrayOfListOfDataSecondSearchResult = [NSMutableArray array];
        for (NSDictionary *dic in value) {
            ListOfDataSecondSearchResult *listOfDataSecondSearchResult = [ListOfDataSecondSearchResult modelDic:dic];
            [mArrayOfListOfDataSecondSearchResult addObject:listOfDataSecondSearchResult];
        }
        _list = mArrayOfListOfDataSecondSearchResult;
    }
}
@end
